<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use App\Api\Controllers\ApiController;

Route::group([
    'middleware' => ['api.token', 'throttle:600,1'],
], function (Router $router) {
    Route::get('/', [ApiController::class, 'index']);
    Route::get('/category', [ApiController::class, 'category_list']);
    Route::get('/matchs', [ApiController::class, 'match_list']);

    Route::get('/competitions/infos', [ApiController::class, 'getCompetitionsInfos']);
    Route::get('/competitions/introductions', [ApiController::class, 'getCompetitionsIntroductions']);
    Route::get('/competitions/groups', [ApiController::class, 'getCompetitionsGroups']);
    Route::get('/teams/infos', [ApiController::class, 'getTeamsInfos']);
    Route::get('/competitions/leagueTables', [ApiController::class, 'getCompetitionsLeagueTables']);
    Route::get('/competitions/detailLeagueTables', [ApiController::class, 'getCompetitionsDetailLeagueTables']);
    Route::get('/players/infos', [ApiController::class, 'getPlayersInfos']);
    Route::get('/players/suspensions', [ApiController::class, 'getPlayersSuspensions']);
    Route::get('/transfers/queryByDate', [ApiController::class, 'getTransfersByDate']);
    Route::get('/countries/infos', [ApiController::class, 'getCountriesInfos']);
    Route::get('/competitions/fixture', [ApiController::class, 'getCompetitionsFixture']);
    Route::get('/competitions/queryFixtureByDate', [ApiController::class, 'getCompetitionsFixtureByDate']);
    Route::get('/matchs/modifyLogs', [ApiController::class, 'getMatchsModifyLogs']);
    Route::get('/matchs/previewStarters', [ApiController::class, 'getMatchsPreviewStarters']);
    Route::get('/matchs/liveScores', [ApiController::class, 'getMatchsLiveScores']);
    Route::get('/matchs/liveTimelines', [ApiController::class, 'getMatchsLiveTimelines']);
    Route::get('/matchs/liveSimplePlayerStats', [ApiController::class, 'getMatchsLiveSimplePlayerStats']);
    Route::get('/matchs/liveSimpleTeamStats', [ApiController::class, 'getMatchsLiveSimpleTeamStats']);
    Route::get('/matchs/liveTrend', [ApiController::class, 'getMatchsLiveTrend']);
    Route::get('/lotteries/jczqOdds', [ApiController::class, 'getLotteriesJczqOdds']);
    Route::get('/lotteries/bjdcOdds', [ApiController::class, 'getLotteriesBjdcOdds']);
    Route::get('/lotteries/bjdcSfggOdds', [ApiController::class, 'getLotteriesBjdcSfggOdds']);
    Route::get('/lotteries/jczqResults', [ApiController::class, 'getLotteriesJczqResults']);
    Route::get('/lotteries/bjdcResults', [ApiController::class, 'getLotteriesBjdcResults']);
    Route::get('/lotteries/bjdcSfggResults', [ApiController::class, 'getLotteriesBjdcSfggResults']);
    Route::get('/lotteries/ctzc', [ApiController::class, 'getLotteriesCtzc']);
    Route::get('/companies/infos', [ApiController::class, 'getCompaniesInfos']);
    Route::get('/zhishu/v1/mainOdds', [ApiController::class, 'getZhishuMainOdds']);
    Route::get('/zhishu/v1/mainOddsChange', [ApiController::class, 'getZhishuMainOddsChange']);
    Route::get('/zhishu/v1/otherOdds', [ApiController::class, 'getZhishuOtherOdds']);
    Route::get('/zhishu/v1/otherOddsChange', [ApiController::class, 'getZhishuOtherOddsChange']);
    Route::get('/players/stats', [ApiController::class, 'getPlayersStats']);
    Route::get('/players/getStatsByCompetition', [ApiController::class, 'getPlayersStatsByCompetition']);
    Route::get('/teams/stats', [ApiController::class, 'getTeamsStats']);
    Route::get('/teams/getStatsByCompetition', [ApiController::class, 'getTeamsStatsByCompetition']);
    Route::get('/zhishu/v1/mainOddsHistory', [ApiController::class, 'getZhishuMainOddsHistory']);


});
